javascript sort on objects date

50

javascript order array by date -

const sortedActivities = activities.sort((a, b) => b.date - a.date)

Comments

Submit
0 Comments